Optimal. Leaf size=78 \[ \frac{\sqrt{\frac{\pi }{2}} e^{-2 a} \text{Erf}\left (\sqrt{2} \sqrt{b} x\right )}{8 \sqrt{b}}+\frac{\sqrt{\frac{\pi }{2}} e^{2 a} \text{Erfi}\left (\sqrt{2} \sqrt{b} x\right )}{8 \sqrt{b}}+\frac{x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0429458, antiderivative size = 78, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.4, Rules used = {5301, 5299, 2204, 2205} \[ \frac{\sqrt{\frac{\pi }{2}} e^{-2 a} \text{Erf}\left (\sqrt{2} \sqrt{b} x\right )}{8 \sqrt{b}}+\frac{\sqrt{\frac{\pi }{2}} e^{2 a} \text{Erfi}\left (\sqrt{2} \sqrt{b} x\right )}{8 \sqrt{b}}+\frac{x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5301
Rule 5299
Rule 2204
Rule 2205
Rubi steps
\begin{align*} \int \cosh ^2\left (a+b x^2\right ) \, dx &=\int \left (\frac{1}{2}+\frac{1}{2} \cosh \left (2 a+2 b x^2\right )\right ) \, dx\\ &=\frac{x}{2}+\frac{1}{2} \int \cosh \left (2 a+2 b x^2\right ) \, dx\\ &=\frac{x}{2}+\frac{1}{4} \int e^{-2 a-2 b x^2} \, dx+\frac{1}{4} \int e^{2 a+2 b x^2} \, dx\\ &=\frac{x}{2}+\frac{e^{-2 a} \sqrt{\frac{\pi }{2}} \text{erf}\left (\sqrt{2} \sqrt{b} x\right )}{8 \sqrt{b}}+\frac{e^{2 a} \sqrt{\frac{\pi }{2}} \text{erfi}\left (\sqrt{2} \sqrt{b} x\right )}{8 \sqrt{b}}\\ \end{align*}
Mathematica [A] time = 0.072337, size = 86, normalized size = 1.1 \[ \frac{\sqrt{\pi } (\cosh (2 a)-\sinh (2 a)) \text{Erf}\left (\sqrt{2} \sqrt{b} x\right )+\sqrt{\pi } (\sinh (2 a)+\cosh (2 a)) \text{Erfi}\left (\sqrt{2} \sqrt{b} x\right )+4 \sqrt{2} \sqrt{b} x}{8 \sqrt{2} \sqrt{b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.029, size = 51, normalized size = 0.7 \begin{align*}{\frac{x}{2}}+{\frac{{{\rm e}^{-2\,a}}\sqrt{\pi }\sqrt{2}}{16}{\it Erf} \left ( x\sqrt{2}\sqrt{b} \right ){\frac{1}{\sqrt{b}}}}+{\frac{{{\rm e}^{2\,a}}\sqrt{\pi }}{8}{\it Erf} \left ( \sqrt{-2\,b}x \right ){\frac{1}{\sqrt{-2\,b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.67488, size = 76, normalized size = 0.97 \begin{align*} \frac{\sqrt{2} \sqrt{\pi } \operatorname{erf}\left (\sqrt{2} \sqrt{-b} x\right ) e^{\left (2 \, a\right )}}{16 \, \sqrt{-b}} + \frac{\sqrt{2} \sqrt{\pi } \operatorname{erf}\left (\sqrt{2} \sqrt{b} x\right ) e^{\left (-2 \, a\right )}}{16 \, \sqrt{b}} + \frac{1}{2} \, x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.66845, size = 225, normalized size = 2.88 \begin{align*} -\frac{\sqrt{2} \sqrt{\pi } \sqrt{-b}{\left (\cosh \left (2 \, a\right ) + \sinh \left (2 \, a\right )\right )} \operatorname{erf}\left (\sqrt{2} \sqrt{-b} x\right ) - \sqrt{2} \sqrt{\pi } \sqrt{b}{\left (\cosh \left (2 \, a\right ) - \sinh \left (2 \, a\right )\right )} \operatorname{erf}\left (\sqrt{2} \sqrt{b} x\right ) - 8 \, b x}{16 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \cosh ^{2}{\left (a + b x^{2} \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.36541, size = 78, normalized size = 1. \begin{align*} -\frac{\sqrt{2} \sqrt{\pi } \operatorname{erf}\left (-\sqrt{2} \sqrt{-b} x\right ) e^{\left (2 \, a\right )}}{16 \, \sqrt{-b}} - \frac{\sqrt{2} \sqrt{\pi } \operatorname{erf}\left (-\sqrt{2} \sqrt{b} x\right ) e^{\left (-2 \, a\right )}}{16 \, \sqrt{b}} + \frac{1}{2} \, x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]